package com.waniu;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Slf4j
@RestController
public class HomeController {
    @Value("${server.port:8080}")
    private String port;

    @Resource
    private PersonProperties personProperties;

    @RequestMapping("/home")
    public Object home() {
        return Result.success(personProperties);
    }

}
